package com.jiyun.controller;

import com.jiyun.bean.User;
import com.jiyun.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private UserService userService;

    @RequestMapping("/hello")
    public User hello(){
        User user = userService.getQueryByid(1l);
        return user;
    }

}
